import 'package:flutter/material.dart';

void main() => runApp(TApp());

class TApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        centerTitle: true,
        title: Text('Materilal App Bar'),
      ),
      body: ConstrainedBox(
        child: Image.network(
            'https://images.techhive.com/images/idge/imported/article/ctw/2012/09/19/android-logo-100381000-orig.jpg'),
        constraints: BoxConstraints(
          maxWidth: 32.0,
          maxHeight: 32.0,
        ),
      ),
    );
  }
}
